import { Column, Entity } from "typeorm";
import { BaseEntity } from "../../../base/entity/base";

@Entity('car_info')
export class CarInfoEntity extends BaseEntity {

    @Column({ nullable: false, comment: '绑定的系统用户ID' })
    providerId: number

    @Column({ comment: '所属团队ID', nullable: true })
    teamId: number

    @Column({ comment: '车牌号', length: 20 })
    licensePlate: string;

    @Column({ comment: '车辆型号 如：A8 2023款、 考斯特 金杯海狮等', length: 50 })
    model: string;

    @Column({ comment: '车辆类型', dict: ['经济五座', '舒适五座', '豪华五座', '经济七座', '舒适七座', '豪华七座', '其他'], default: 0 })
    typeId: number

    @Column({ comment: '车辆品牌', length: 50, nullable: true })
    brand: string;

    @Column({ comment: '车辆照片', nullable: true })
    photo: string;

    @Column({ comment: '车辆状态', default: 1 })
    status: number;

    @Column({ comment: '车辆备注', nullable: true })
    remark: string;

    @Column({ comment: '车辆标签', nullable: true })
    tags: string;

    @Column({ comment: '车辆颜色', length: 20, nullable: true })
    color: string;

    @Column({ comment: '运力ID', unique: true, nullable: false })
    capacityId: number
}